package com.study.springboot;

import com.study.springboot.conf.LoadBalanceConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.cloud.loadbalancer.annotation.LoadBalancerClients;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * @author huyong
 */
@SpringBootApplication
@EnableFeignClients
//将负载均衡修改为随机负载均衡
@LoadBalancerClients(defaultConfiguration = LoadBalanceConfig.class)
public class ConsumerApplication8080 {

    public static void main(String[] args) {
        SpringApplication.run(ConsumerApplication8080.class, args);
    }

}
